package com.solo.game.snake;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

/**
 * 
 *  <code>SnakeGame</code>
 *  <p>SnakeGame描述: 贪吃蛇基本类
 *  
 *  @version 1.0 
 *  @author Zangrong.Solo 
 *  日期: Dec 13, 2012 3:26:56 PM
 */
public class SnakeGame {

    /** 
     * <P>描述:
     * 
     * @author Zangrong.Solo
     * 日期: Dec 13, 2012 3:26:48 PM
     * @param args
     */
    public static void main(String[] args) {

        JFrame test = new SnakeFrame();
        test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        test.setLocation((d.width - test.getSize().width) / 2, (d.height - test
                .getSize().height) / 2);
        test.setVisible(true);
        System.out.println(test.getJMenuBar().getHeight());
    }

}
